#ifndef QCUSTOMDIALOG_H
#define QCUSTOMDIALOG_H

#include <QtCore/qglobal.h>

#ifdef COMMONCTRL_LIB
# define COMMONCTRL_EXPORT Q_DECL_EXPORT
#else
# define COMMONCTRL_EXPORT Q_DECL_IMPORT
#endif


#include <QDialog>

class QCustomDialogPrivate;
class COMMONCTRL_EXPORT QCustomDialog : public QDialog
{
	Q_OBJECT

public:
	QCustomDialog(QWidget *parent = 0,Qt::WindowFlags f = 0);
	~QCustomDialog();
	 
	virtual		void	closeWidget();
	virtual		void	changeEvent(QEvent* e);
	void				setTranslateUI(QWidget* pWidget);

	void		setFramelessHint(bool bFlag);
	void		setWindowTitle(const QString&);
	void		setCoustomResizeable(bool bFlag);

private:
	QCustomDialogPrivate* d;

private slots:
	void		onAppMinSlot();
	void		onAppMaxSlot();
	void		onAppCloseSlot();
};

#endif // QCUSTOMWIDGET_H
